<route lang="json5" type="home">
{
	style: {
		navigationStyle: 'custom',
	},
}
</route>
<template>
	<view class="page">
		<!-- 欢迎页 -->
		<wd-button type="primary" @click="welcome">欢迎使用七号助手</wd-button>
	</view>
</template>
<script setup>
const welcome = () => {
	let token = uni.getStorageSync('token')
	console.log('%c [ token ]-18', 'font-size:13px; background:pink; color:#bf2c9f;', token)
	if (token) {
		uni.switchTab({ url: '/pages/index/index' })
	} else {
		uni.redirectTo({ url: '/pages/login/index' })
	}
}
</script>
<style lang="scss" scoped>
.page {
	background-image: url('https://movieface.oss-cn-hangzhou.aliyuncs.com/icon/wx/图层 3.png');
	background-size: cover;
	justify-content: center;
	align-items: center;
}
</style>
